﻿<%@ Page Title="资料修改" Language="C#" MasterPageFile="~/Common2.Master" AutoEventWireup="true" CodeBehind="WebAdmin4.aspx.cs" Inherits="loginWeb.WebAdmin4" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style3 {
        color: #434C5C;
            height: 27px;
        }
    .auto-style4 {
        font-size: x-large;
    }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <p class="auto-style3">
    <asp:Label ID="Label1" runat="server" CssClass="auto-style4"></asp:Label>
    <span class="auto-style1"><span class="auto-style4">的资料</p>
            </span>
        <p class="auto-style3">
            &nbsp;</p>
<p class="auto-style3" style="font-size: xx-large">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4" DataKeyNames="登录名" DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" style="font-size: medium; margin-left: 443px" Width="469px">
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        <Columns>
            <asp:BoundField DataField="登录名" HeaderText="登录名" ReadOnly="True" SortExpression="登录名" />
            <asp:BoundField DataField="密码" HeaderText="密码" SortExpression="密码" />
            <asp:CommandField ShowEditButton="True" />
        </Columns>
        <EditRowStyle BackColor="#999999" />
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#E9E7E2" />
        <SortedAscendingHeaderStyle BackColor="#506C8C" />
        <SortedDescendingCellStyle BackColor="#FFFDF8" />
        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
    </asp:GridView>
</p>
<p class="auto-style3" style="font-size: xx-large">
    &nbsp;</p>
<p class="auto-style3" style="font-size: xx-large">
    &nbsp;</p>
<p class="auto-style3" style="font-size: xx-large">
    &nbsp;</p>
<p class="auto-style3" style="font-size: xx-large">
    <asp:ImageButton ID="ImageButton3" runat="server" ImageUrl="~/image/返回 啊.png" PostBackUrl="~/WebAdmin1.aspx" />
    </p>
<p class="auto-style3" style="font-size: xx-large">
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConflictDetection="CompareAllValues" ConnectionString="<%$ ConnectionStrings:dhd2014112109ConnectionString %>" DeleteCommand="DELETE FROM [Admin] WHERE [登录名] = @original_登录名 AND [密码] = @original_密码" InsertCommand="INSERT INTO [Admin] ([登录名], [密码]) VALUES (@登录名, @密码)" OldValuesParameterFormatString="original_{0}" SelectCommand="SELECT [登录名], [密码] FROM [Admin] WHERE ([登录名] = @登录名)" UpdateCommand="UPDATE [Admin] SET [密码] = @密码 WHERE [登录名] = @original_登录名 AND [密码] = @original_密码">
        <DeleteParameters>
            <asp:Parameter Name="original_登录名" Type="String" />
            <asp:Parameter Name="original_密码" Type="String" />
        </DeleteParameters>
        <InsertParameters>
            <asp:Parameter Name="登录名" Type="String" />
            <asp:Parameter Name="密码" Type="String" />
        </InsertParameters>
        <SelectParameters>
            <asp:ControlParameter ControlID="Label1" Name="登录名" PropertyName="Text" Type="String" />
        </SelectParameters>
        <UpdateParameters>
            <asp:Parameter Name="密码" Type="String" />
            <asp:Parameter Name="original_登录名" Type="String" />
            <asp:Parameter Name="original_密码" Type="String" />
        </UpdateParameters>
    </asp:SqlDataSource>
</p>
    </span>
</asp:Content>
